﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Specialized;

namespace TallComponents.Web.Pdf
{
    /// <summary>
    /// Stores request parameters for a page thumbnail generation.
    /// </summary>
    internal class ThumbnailRequestParameters : RequestParameters
    {
        /// <summary>
        /// Gets the rotation.
        /// </summary>
        public int Rotation { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="ThumbnailRequestParameters"/> class.
        /// </summary>
        /// <param name="values">The values.</param>
        public ThumbnailRequestParameters(NameValueCollection values)
            : base(values)
        {
            Rotation = NormalizeRotation(GetIntFromParam(values[ROTATIONKEY]));
        }

    }
}
